<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta HTTP-EQUIV="REFRESH" CONTENT="10; index.jsp">
<title>VenComPropWeb - Salir</title>
</head>
<body BGCOLOR="#000000" TEXT="#F0F0F0" LINK="#FFFFFF" VLINK="#00ff00" ALINK="#ffff00">

<p align="left"><img src="./images/icono.JPG"  width="200" height="140" alt="icono.JPG" border="3"></p>
<big><a href="index.jsp" style="text-decoration:none">Inicio</a></big>
<div align="center">
<table>
            <tr>
<% 
   if ((session.getAttribute("username") != null) && (session.getAttribute("salir") != null)) {
	  String salir = session.getAttribute("salir").toString();
	  
	  if (salir.equals("No")) {		  
		   %>   
		   <jsp:forward page="index.jsp"/>
		   <%  
		  
	  }
	   
      String username = session.getAttribute("username").toString();
%>
            <td valign="top"><h1>Vaya con Dios...y vuelva con más gente, <b><%=username%></b></h1></td>
<%      

      username = null;
      salir = "No";
      String desea = "Si";

      session.setAttribute("desea", desea);
      session.setAttribute("salir", salir);
      session.setAttribute("username", username);
   } // if
   else {
	   %>   
	   <jsp:forward page="index.jsp"/>
	   <%
   }
%>                
</tr>

</table>
</div>

</body>
</html>